export default function (goodId) {
  const SCBdatasource = [
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      }, {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.social_insurance || 'SocialInsurance',
      key: 'socialInsurance',
      data: [{
        label: window.LangMessage.yes || 'YES',
        value: 'YES'
      },
      {
        label: window.LangMessage.no || 'NO',
        value: 'NO'
      }]
    }
  ]
  const ELAdatasource = [
    // {
    //     name:'保额',
    //     key:'SA',
    //     data:[
    //             {label:'50万',
    //             value:'500000'},
    //             {label:'200万',
    //             value:'2000000'},
    //             {label:'500万',
    //             value:'5000000'}
    //         ]
    //     },
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      }, {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.coverage_period || '保障期間',
      key: 'coveragePeriod',
      data: [
        {
          label: '20年',
          value: '20'
        }
      ]
    }
  ]
  const HJKdatasource = [
    // {
    // name:'保额',
    // key:'SA',
    // data:[
    //         {label:'50万',
    //         value:'500000'},
    //         {label:'200万',
    //         value:'2000000'},
    //         {label:'500万',
    //         value:'5000000'}
    //     ]
    // },
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      }, {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    //  {
    //     name:'繳費年限',
    //     key:'paymentPeriod',
    //     data: [
    //         {
    //         label: '10年',
    //         value: '10',
    //     },
    //      {
    //         label: '15年',
    //         value: '15',
    //     },
    //      {
    //         label: '20年',
    //         value: '20',
    //         }
    //      ]
    // },
    {
      name: window.LangMessage.pay_frequency_text || '繳别',
      key: 'payFrequencyType',
      data: [
        {
          label: window.LangMessage.year_pay || '年缴',
          value: 'YEAR'
        }, {
          label: window.LangMessage.Halfyear_pay || '半年缴',
          value: 'HALFYEAR'
        }, {
          label: window.LangMessage.quarter_pay || '季缴',
          value: 'QUARTER'
        }, {
          label: window.LangMessage.month_pay || '月缴',
          value: 'MONTH'
        }
      ]
    }
  ]
  const ESAdatasource = [
    // {
    // name:'保额',
    // key:'SA',
    // data:[
    //         {label:'50万',
    //         value:'500000'},
    //         {label:'200万',
    //         value:'2000000'},
    //         {label:'500万',
    //         value:'5000000'}
    //     ]
    // },
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      },
      {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    }
  ]
  const datasource25 = [
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      },
      {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.pay_frequency_text || '繳别',
      key: 'payFrequencyType',
      data: [
        {
          label: window.LangMessage.year_pay || '年缴',
          value: 'YEAR'
        },
        {
          label: window.LangMessage.month_pay || '月缴',
          value: 'MONTH'
        }
      ]
    }
  ]
  const datasource1 = [
    {
      name: window.LangMessage.social_insurance || 'SocialInsurance',
      key: 'socialInsurance',
      data: [{
        label: window.LangMessage.yes || 'YES',
        value: 'YES'
      },
      {
        label: window.LangMessage.no || 'NO',
        value: 'NO'
      }]
    }
  ]
  const datasource2 = [
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      },
      {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.Payment_Period || '繳費年限',
      key: 'paymentPeriod',
      data: [
        {
          label: '趸缴',
          value: '0'
        },
        {
          label: '3年',
          value: '3'
        },
        {
          label: '5年',
          value: '5'
        }
      ]
    }
  ]
  const datasource9 = [
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      },
      {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.Payment_Period || '繳費年限',
      key: 'paymentPeriod',
      data: [
        {
          label: '10年',
          value: '10'
        },
        {
          label: '20年',
          value: '20'
        },
        {
          label: '30年',
          value: '30'
        }
      ]
    }, {
      name: window.LangMessage.coverage_period || '保障期間',
      key: 'coveragePeriod',
      data: [
        {
          label: '70年',
          value: '70'
        },
        {
          label: '80年',
          value: '80'
        }, {
          label: '终身',
          value: '999'
        }
      ]
    }
  ]
  const datasource12 = [
    {
      name: window.LangMessage.gender || '性別',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男',
        value: 'MALE'
      },
      {
        label: window.LangMessage.gender_female || '女',
        value: 'FMAIL'
      }]
    },
    {
      name: window.LangMessage.Payment_Period || '繳費年限',
      key: 'paymentPeriod',
      data: [
        {
          label: '趸缴',
          value: '0'
        },
        {
          label: '3年',
          value: '3'
        },
        {
          label: '5年',
          value: '5'
        }
      ]
    },
    {
      name: window.LangMessage.coverage_period || '保障期間',
      key: 'coveragePeriod',
      data: [
        {
          label: '20年',
          value: '20'
        },
        {
          label: '30年',
          value: '30'
        }
      ]
    },
    {
      name: window.LangMessage.pay_frequency_text || '繳别',
      key: 'payFrequencyType',
      data: [
        {
          label: window.LangMessage.year_pay || '年缴',
          value: 'YEAR'
        },
        {
          label: window.LangMessage.single || '趸缴',
          value: 'SINGLE'
        }
      ]
    }
  ]
  const datasourceProperty = [ // 财产险poc 暂定id是0
    {
      name: '企业类型',
      key: 'companyType',
      data: [{
        label: '娱乐场所',
        value: 'ENTERTAINMENT'
      }, {
        label: '旅馆',
        value: 'HOTLE'
      }, {
        label: '健身场所',
        value: 'GYMNASIUM'
      }, {
        label: '餐饮业',
        value: 'CATERINGINDUSTRY'
      }]
    },
    {
      name: '附加扩展非工作期间意外身故伤残条款',
      key: 'addClauseNonWorkHour',
      data: [{
        label: '是',
        value: 'YES'
      },
      {
        label: '否',
        value: 'NO'
      }]
    }
  ]
  let arr = []
  for (var i = 1; i <= 36; i++) {
    arr.push({label: i,
      value: i })
  }
  const grabDatasource1 = [{
    name: 'travelDays',
    key: 'travelDays',
    data: arr
  }]

  const datasource128011 = [
    {
      name: '旅行日数',
      key: 'travelDays',
      data: arr
    },
    {
      name: '旅行場所',
      key: 'travelPlace',
      data: [{
        label: '1',
        value: '1'
      }, {
        label: '2',
        value: '2'
      }, {
        label: '3',
        value: '3'
      }]
    }
  ]
  const datasource137052 = [
    {
      name: window.LangMessage.pay_frequency_text || '繳别',
      key: 'payFrequencyType',
      data: [
        {
          label: window.LangMessage.year_pay || '年缴',
          value: '5'
        },
        {
          label: window.LangMessage.month_pay || '月缴',
          value: '2'
        }
      ]
    }
  ]
  const datasource137049 = [
    {
      name: window.LangMessage.gender || 'セックス',
      key: 'gender',
      data: [{
        label: window.LangMessage.gender_male || '男性',
        value: '1'
      }, {
        label: window.LangMessage.gender_female || '女性',
        value: '2'
      }]
    },
    {
      name: window.LangMessage.social_insurance || 'SocialInsurance',
      key: 'socialInsurance',
      data: [{
        label: window.LangMessage.yes || 'YES',
        value: '1'
      },
      {
        label: window.LangMessage.no || 'NO',
        value: '2'
      }]
    }
  ]

  let datasource = []

  switch (goodId) {
    case '10':
      datasource = SCBdatasource
      break
    case '20':
      datasource = SCBdatasource
      break
    case '21':
      datasource = SCBdatasource
      break
    case '25':
      datasource = datasource25
      break
    case '13':
      datasource = ELAdatasource
      break
    case '14':
      datasource = ESAdatasource
      break
    case '15':
      datasource = HJKdatasource
      break
    case '1':
      datasource = datasource1
      break
    case '2':
      datasource = datasource2
      break
    case '9':
      datasource = datasource9
      break
    case '12':
      datasource = datasource12
      break
    case '42003':
      datasource = HJKdatasource
      break
    case '108004':
      datasource = datasourceProperty
      break
    case '112001':
      datasource = SCBdatasource
      break
    case '130003':
      datasource = datasource1
      break
    case '130005':
      datasource = grabDatasource1
      break
    case '128011':
      datasource = datasource128011
      break
    case '137049':
      datasource = datasource137049
      break
    case '137052':
      datasource = datasource137052
      break
    case '61002':
      datasource = datasource137049
      break
    case '62001':
      datasource = datasource128011
      break
    case '63001':
      datasource = datasource137049
      break
    case '63002':
      datasource = datasource137052
      break
  }
  return datasource
}
